package e2q.portal.domain.uPortal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * UpUserParam entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "up_user_param")
@IdClass(e2q.portal.domain.uPortal.UpUserParamId.class)
public class UpUserParam implements java.io.Serializable {

	// Fields
	@Id
	@Column(name = "USER_ID")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private Integer userId;
	@Id
	@Column(name = "USER_PARAM_NAME")
	@GeneratedValue(generator = "pk")
	@GenericGenerator(name = "pk", strategy = "assigned")
	private String userParamName;
	@Column(name = "USER_PARAM_VALUE")
	private String userParamValue;

	// Constructors

	/** default constructor */
	public UpUserParam() {
	}

	/** minimal constructor */
	public UpUserParam(Integer userId, String userParamName) {
		this.userId = userId;
		this.userParamName = userParamName;
	}

	/** full constructor */
	public UpUserParam(Integer userId, String userParamName, String userParamValue) {
		this.userId = userId;
		this.userParamName = userParamName;
		this.userParamValue = userParamValue;
	}

	// Property accessors
	
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserParamName() {
		return this.userParamName;
	}

	public void setUserParamName(String userParamName) {
		this.userParamName = userParamName;
	}

	public String getUserParamValue() {
		return this.userParamValue;
	}

	public void setUserParamValue(String userParamValue) {
		this.userParamValue = userParamValue;
	}

}